public class ThreadDemo4 {
    public static void main(String[] args) {
        Runnable runnable=new MyRunnable();
        Thread t=new Thread(runnable){
            @Override
            public void run() {
               System.out.println("hello word");
            }
        };
        t.start();
    }
}
